package com.dkd.sbtz.service.impl;

import java.util.List;
import com.dkd.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dkd.sbtz.mapper.AssetNodeTestOneMapper;
import com.dkd.sbtz.domain.AssetNodeTestOne;
import com.dkd.sbtz.service.IAssetNodeTestOneService;

/**
 * 设备台账测试Service业务层处理
 * 
 * @author xzj
 * @date 2025-10-16
 */
@Service
public class AssetNodeTestOneServiceImpl implements IAssetNodeTestOneService 
{
    @Autowired
    private AssetNodeTestOneMapper assetNodeTestOneMapper;

    /**
     * 查询设备台账测试
     * 
     * @param id 设备台账测试主键
     * @return 设备台账测试
     */
    @Override
    public AssetNodeTestOne selectAssetNodeTestOneById(Long id)
    {
        return assetNodeTestOneMapper.selectAssetNodeTestOneById(id);
    }

    /**
     * 查询设备台账测试列表
     * 
     * @param assetNodeTestOne 设备台账测试
     * @return 设备台账测试
     */
    @Override
    public List<AssetNodeTestOne> selectAssetNodeTestOneList(AssetNodeTestOne assetNodeTestOne)
    {
        return assetNodeTestOneMapper.selectAssetNodeTestOneList(assetNodeTestOne);
    }

    /**
     * 新增设备台账测试
     * 
     * @param assetNodeTestOne 设备台账测试
     * @return 结果
     */
    @Override
    public int insertAssetNodeTestOne(AssetNodeTestOne assetNodeTestOne)
    {
        assetNodeTestOne.setCreateTime(DateUtils.getNowDate());
        return assetNodeTestOneMapper.insertAssetNodeTestOne(assetNodeTestOne);
    }

    /**
     * 修改设备台账测试
     * 
     * @param assetNodeTestOne 设备台账测试
     * @return 结果
     */
    @Override
    public int updateAssetNodeTestOne(AssetNodeTestOne assetNodeTestOne)
    {
        assetNodeTestOne.setUpdateTime(DateUtils.getNowDate());
        return assetNodeTestOneMapper.updateAssetNodeTestOne(assetNodeTestOne);
    }

    /**
     * 批量删除设备台账测试
     * 
     * @param ids 需要删除的设备台账测试主键
     * @return 结果
     */
    @Override
    public int deleteAssetNodeTestOneByIds(Long[] ids)
    {
        return assetNodeTestOneMapper.deleteAssetNodeTestOneByIds(ids);
    }

    /**
     * 删除设备台账测试信息
     * 
     * @param id 设备台账测试主键
     * @return 结果
     */
    @Override
    public int deleteAssetNodeTestOneById(Long id)
    {
        return assetNodeTestOneMapper.deleteAssetNodeTestOneById(id);
    }
}
